function validate(){
    jQuery.validator.addMethod("notEqual", function(value, element, param) {
        return this.optional(element) || value !== param;
    }, "Please choose a country");
    $('#compromisopaisId').rules("add", {
        required:true,
        notEqual:-1
    });
}